﻿using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyCore.DataValidation
{
    /// <summary>
    /// 结果工厂
    /// </summary>
    public interface IEasyValidationResultFactory
    {
        /// <summary>
        /// 返回自定义验证结果
        /// </summary>
        /// <param name="context"></param>
        /// <param name="validationProblemDetails"></param>
        /// <returns></returns>
        public IActionResult CreateActionResult(ActionExecutingContext context, ValidationProblemDetails? validationProblemDetails);
    }
}
